Parser["control:button:default:Json2htmlParser:html"] = function(confs) {
	var fmdcols="";
	var s = "";
	s += '<span>';
	for (var c in confs) {
		var conf = confs[c];
		var prop = conf.id ? Parser.props[conf.id] : {};
		Parser.log(JSON.stringify(conf));
		Parser.log(JSON.stringify(prop));
		fmdcols = parseInt(conf.fmdcols);
		var data = {};
		data.style = Parser.cssDisplay(prop.btndisplay)+(prop.style?prop.style:"")+(prop.margintop?"margin-top:"+prop.margintop:"");
		//s += '<div class="btn" style="display:inline" id="'+conf.id+'"><a href="#" onclick="return false;">'+prop["i18nname-"+Parser.lang]+'</a></div>';
		s += '<button type="button" class="btn btn-primary btn-md '+(prop.classNames ? prop.classNames : '')+'" style="margin-left:20px;'+
		(data.style ? data.style+'"' : '')+'" id="'+conf.id+'"'+
		(prop.disabled=='1'? (' disabled="disabled" ') : '') +
		' onclick="return false;">'+prop["i18nname-"+Parser.lang]+'</button>'
	}
	s += '</span>';
	s = '<div class="item cellborderBtn col-md-'+fmdcols+'">'+ s +'</div>';
	return s;
};

Parser["control:button:bootstrap-blue:Json2htmlParser:html"] = function(confs) {
	var fmdcols="";
	var s = "";
	s += '<span>';
	for (var c in confs) {
		var conf = confs[c];
		var prop = conf.id ? Parser.props[conf.id] : {};
		Parser.log(JSON.stringify(conf));
		Parser.log(JSON.stringify(prop));
		fmdcols = parseInt(conf.fmdcols);
		var data = {};
		data.style = Parser.cssDisplay(prop.btndisplay)+(prop.style?prop.style:"")+(prop.margintop?"margin-top:"+prop.margintop:"");
		s += '<button type="button" class="btn btn-primary btn-md '+(prop.classNames ? prop.classNames : '')+'" style="margin-left:20px;'+data.style+'" id="'+conf.id+'"'+
		(prop.disabled=='1'? (' disabled="disabled" ') : '') +
		'>'+prop["i18nname-"+Parser.lang]+'</button>';
	}
	s += '</span>';
	s = '<div class="col-md-'+fmdcols+'">'+ s +'</div>';
	return s;
};


